﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cofe.Core.Implements;

namespace Cofe.Data
{
    public class HashTag
    {
        public string TagName { get; set; }
        public string TagType { get; set; }
        public IList<DatabaseEntry> AppliedEntries { get; set; }

        public HashTag()
        {
            AppliedEntries = new List<DatabaseEntry>();
        }

        public override int GetHashCode()
        {
            return TagName.GetHashCode();
        }

        public override string ToString()
        {
            return TagName;
        }

        public override bool Equals(object obj)
        {
            return this.GetHashCode() == obj.GetHashCode();
        }
    }

}
